//    Copyright (C) Kherty.  All rights reserved.
using OpenLS.Core.Serialization;

namespace OpenLS.Drawing
{
    public class TextBlipBullet : TextBullet
    {
        private Blip _blip;

        public Blip Blip
        {
            get { return _blip; }
            set { _blip = value; }
        }

        internal override void ReadXmlCore(ReadContext context)
        {
            using (var c = context.Read("buBlip"))
            {
                Blip = c.ReadElement<Blip>();
            }
        }

        internal override void WriteXmlCore(WriteContext context)
        {
            using (WriteContext c = context.Write("buBlip"))
            {
                c.WriteElement(Blip);
            }
        }
    }
}